package com.algoruthm6;

public class Utils {

    public static void swap(int[] array,int i,int j){
        if(i<array.length&&j<array.length){
            int temp = array[i];
            array[i] = array[j];
            array[j] = temp;
        }else{
            System.out.println("数组越界!");
        }
    }
}
